<!--定义分页请求地址，传递给backConstant.ftl-->
<#assign urllist="${rc.contextPath}/parkrecord/recordAdminJsonList" />
<!--定义详情请求地址，传递给backConstant.ftl-->
<#assign urldetail="${rc.contextPath}/parkrecord/recordAdminJsonDetail" />
<!--定义添加表单初始值请求地址，传递给backConstant.ftl-->
<#assign urladdforminit="${rc.contextPath}/parkrecord/recordAdminJsonAddFormInit" />
<!--定义保存实体变量地址，传递给backConstant.ftl-->
<#assign urlsave="${rc.contextPath}/parkrecord/recordAdminJsonSave" />
<!--定义修改实体变量地址，传递给backConstant.ftl-->
<#assign urlupdate="${rc.contextPath}/parkrecord/recordAdminJsonUpdate" />
<!--定义删除实体变量地址，传递给backConstant.ftl-->
<#assign urldelete="${rc.contextPath}/parkrecord/recordAdminJsonDelete" />
<#assign urlcreateInvoice="${rc.contextPath}/test/testCreateInvoice" />
<#assign testData="${rc.contextPath}/test/testData" />
<!--定义销方详情实体地址，传递给backConstant.ftl-->
<#assign urlgroup="${rc.contextPath}/test/testGroup" />
<#assign urlInvoiceType="${rc.contextPath}/electronicInvoice/invoiceTypeDataJson" />

<!--include常量-->
<#include "/misc/backConstant.ftl">

<script type="text/javascript">
		//设置分页表格的属性
		var paginationColumns = 
			[
			 {field:"serialNumber",title:"<@i18n.message "parkrecord.message.field.serialNumber"/>",width:50},
			 {field:"recordId",title:"<@i18n.message "parkrecord.message.field.recordId"/>",width:50},
			 {field:"plateNumber.plateNumber",title:"<@i18n.message "parkrecord.message.field.plateNumber"/>",width:50},
			 {field:"parkingPlace.address",title:"<@i18n.message "parkrecord.message.field.parkingPlace"/>",width:50},
			 {field:"status.name",title:"<@i18n.message "parkrecord.message.field.status"/>",width:50},
			 {field:"receivable",title:"<@i18n.message "parkrecord.message.field.receivable"/>",width:50},
			 {field:"deratePrice",title:"<@i18n.message "parkrecord.message.field.deratePrice"/>",width:50},
			 {field:"money",title:"<@i18n.message "parkrecord.message.field.money"/>",width:50},
			 {field:"createdate",title:"<@i18n.message "picturegallery.message.field.createdate"/>",width:50}
			];
		
		//可以在这里扩充详情的显示
		function detailSet${currentActionName}(result){
		}
		
		$.get("${urlInvoiceType}" , function(result){
		     var options = {
		     	data:result,
		     	textField:'${CoreConstants.VIEW_SELECT_LABEL_TEXT}',
		     	valueField:'${CoreConstants.VIEW_SELECT_LABEL_VALUE}'
		     };
			$('#invoiceTypeFormKey${currentActionName}').combobox(options);
		});

</script>
<script type="text/javascript" src="${rc.contextPath}/static/js/crud.js"></script>

<div style="padding:5px;">
	<table id="dg${currentActionName}"></table>
	<div id="toolbar${currentActionName}"  style="padding:5px;height:auto">
		<div style="margin-bottom:5px">
			<a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="openDetail('detail','${currentActionName}','${urldetail}')"><@i18n.message "button.detail"/></a>
			<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="openInvoiceAdd('dlg','fm','${currentActionName}','${testData}','${urlgroup}')"><@i18n.message "button.invoice"/></a>
		
		</div>
		<div>
			<input id="statusStringSearchKey${currentActionName}" class="easyui-textbox" data-options="prompt:'<@i18n.message "parkrecord.message.field.status"/>'"> &nbsp;&nbsp;
			<a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="doSearch${currentActionName}()"><@i18n.message "button.search"/></a> 
		</div>
	</div>
	<div id="dlg${currentActionName}" class="easyui-dialog" closed="true" resizable="true" minimizable="true" collapsible="true" maximizable="true" style="width:35%;height:70%;padding:10px 20px"
			 buttons="#dlg-buttons${currentActionName}">
		<div class="ftitle"><@i18n.message "parkrecord.message.info"/></div>
			<@spring.form id="fm${currentActionName}" modelAttribute="vm" method="post">
				<div class="fitem" style="display:none;">
					<label><@i18n.message "parkrecord.message.field.plateNumberId"/>:</label>
					<input name="plateNumber.id" id="orderNoFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "parkrecord.message.field.plateNumberId"/>'>
				</div>
				<div class="fitem" style="display:none;">
					<label><@i18n.message "invoice.message.field.invoiceType"/>:</label>
					<input name="orderNo" id="orderNoFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "invoice.message.field.invoiceType"/>'>
				</div>
				<div class="fitem" style="display:none;">
					<label><@i18n.message "electrongf.message.field.ghdwdz"/>:</label>
					<input name="invoiceXfId" id="invoiceXfIdFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "invoice.message.field.invoiceType"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "invoice.message.field.invoiceType"/>:</label>
					<input name="invoiceType" id="invoiceTypeFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "invoice.message.field.invoiceType"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electrongf.message.field.ghdwmc"/>:</label>
					<input name="ghdwmc" id="plateNumberFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electrongf.message.field.ghdwmc"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electrongf.message.field.ghdwsbh"/>:</label>
					<input name="ghdwsbh" id="plateNumberFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electrongf.message.field.ghdwsbh"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electrongf.message.field.ghdwdz"/>:</label>
					<input name="ghdwdz" id="plateNumberFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electrongf.message.field.ghdwdz"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electrongf.message.field.ghdwyhmc"/>:</label>
					<input name="ghdwyhmc" id="plateNumberFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electrongf.message.field.ghdwyhmc"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electrongf.message.field.ghdwyh"/>:</label>
					<input name="ghdwyh" id="plateNumberFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electrongf.message.field.ghdwyh"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electrongf.message.field.ghdwdh"/>:</label>
					<input name="ghdwdh" id="plateNumberFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electrongf.message.field.ghdwdh"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electrongf.message.field.gfkhyx"/>:</label>
					<input name="gfkhyx" id="plateNumberFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electrongf.message.field.gfkhyx"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "goods.message.field.spsl"/>:</label>
					<input name="spsl" id="spslFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "goods.message.field.spsl"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "goods.message.field.je"/>:</label>
					<input name="money" readonly="readonly" id="moneyFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "goods.message.field.je"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "goods.message.field.sl"/>:</label>
					<input name="slKind.code" readonly="readonly" id="slFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "goods.message.field.sl"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "goods.message.field.spbm"/>:</label>
					<input name="spbm" readonly="readonly" id="slFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "goods.message.field.spbm"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "goods.message.field.spmc"/>:</label>
					<input name="spmc" id="spmcFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "goods.message.field.spmc"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "goods.message.field.spsm"/>:</label>
					<input name="spsm" readonly="readonly" id="spsmFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "goods.message.field.spsm"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "goods.message.field.dw"/>:</label>
					<input name="dw" readonly="readonly" id="dwFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "goods.message.field.dw"/>'>
				</div>
				<div class="fitem" style="display:none;">
					<label><@i18n.message "goods.message.field.yhzcbs"/>:</label>
					<input name="yhzcbs" readonly="readonly" id="yhzcbsFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "goods.message.field.yhzcbs"/>'>
				</div>
				<div class="fitem" style="display:none;">
					<label><@i18n.message "goods.message.field.lslbs"/>:</label>
					<input name="lslbs" readonly="readonly" id="yhzcbsFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "goods.message.field.lslbs"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "parkrecord.message.field.plateNumber"/>:</label>
					<input name="plateNumber.plateNumber" readonly="readonly" id="plateNumberFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "parkrecord.message.field.plateNumber"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electronxf.message.field.groupVo"/>:</label>
					<input name="group.fullName" readonly="readonly" id="fullNameFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electronxf.message.field.groupVo"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electronxf.message.field.nsrsbh"/>:</label>
					<input name="nsrsbh" readonly="readonly" id="fullNameFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electronxf.message.field.nsrsbh"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electronxf.message.field.bankName"/>:</label>
					<input name="bankName" readonly="readonly" id="fullNameFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electronxf.message.field.bankName"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electronxf.message.field.bankAccount"/>:</label>
					<input name="bankAccount" readonly="readonly" id="fullNameFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electronxf.message.field.bankAccount"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electronxf.message.field.address"/>:</label>
					<input name="address" readonly="readonly" id="fullNameFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electronxf.message.field.address"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electronxf.message.field.phone"/>:</label>
					<input name="phone" readonly="readonly" id="fullNameFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electronxf.message.field.phone"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electronxf.message.field.biller"/>:</label>
					<input name="biller" readonly="readonly" id="fullNameFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electronxf.message.field.biller"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electronxf.message.field.payee"/>:</label>
					<input name="payee" readonly="readonly" id="fullNameFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electronxf.message.field.payee"/>'>
				</div>
				<div class="fitem" >
					<label><@i18n.message "electronxf.message.field.reviewer"/>:</label>
					<input name="reviewer" readonly="readonly" id="fullNameFormKey${currentActionName}" class="easyui-textbox" missingMessage='<@i18n.message "electronxf.message.field.reviewer"/>'>
				</div>
				
					<input type="hidden" name="${CoreConstants.TOKEN_KEY}" id="${CoreConstants.TOKEN_KEY}${currentActionName}">
			</@spring.form>
		</div>

	</div>
	<div id="dlg-buttons${currentActionName}">
		<a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="save('dlg','fm','${currentActionName}','${urlsave}','${testData}')"><@i18n.message "button.save"/></a>
		<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancelForm('dlg','fm','${currentActionName}')"><@i18n.message "button.cancel"/></a>	</div>
	<div id="detail${currentActionName}" class="easyui-dialog" closed="true" resizable="true" minimizable="true" collapsible="true" maximizable="true" style="width:35%;height:70%;padding:10px 20px" buttons="#detail-buttons${currentActionName}">
		<div class="ftitle"><@i18n.message "parkrecord.message.info"/></div>
		<table class="window_table">
			<tr>
				<td><@i18n.message "parkrecord.message.field.serialNumber"/>:</td>
				<td><label id="serialNumber${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "parkrecord.message.field.recordId"/>:</td>
				<td><label id="recordId${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "parkrecord.message.field.parkingPlace"/>:</td>
				<td><label id="parkingPlace_address${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "parkrecord.message.field.status"/>:</td>
				<td><label id="status_name${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "parkrecord.message.field.plateNumber"/>:</td>
				<td><label id="plateNumber_plateNumber${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "parkrecord.message.field.receivable"/>:</td>
				<td><label id="receivable${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "parkrecord.message.field.deratePrice"/>:</td>
				<td><label id="deratePrice${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "parkrecord.message.field.money"/>:</td>
				<td><label id="money${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "picturegallery.message.field.createdate"/>:</td>
				<td><label id="createdate${currentActionName}"></label></td>
			</tr>
		</table>
	</div>
	
	
	<div id="detail-buttons${currentActionName}">
		<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancelForm('detail',null,'${currentActionName}')"><@i18n.message "button.closed"/></a>
	</div>
</div>